﻿using System;
using System.Collections;
using System.Linq;
using System.Linq.Expressions;
using System.Web.Mvc;

using Mvc.XForms.Controls.Settings;

namespace Mvc.XForms.Controls {
	public static class TriggerExtensions {
		public static TriggerSettings<TContext> Trigger<TContext>(this IContainerControl<TContext> parent, string id) {
			var trigger = new Trigger<TContext>(parent, id);
			return trigger.Settings;
        }
    }
}